<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/12/8
 * Time: 18:15
 */

class Printorder extends CI_Controller{
    function __construct() {
        parent::__construct();
        //加载维修订单模型
        $this->load->model('Order_model');
        $this->load->model('Product_model');
    }
    public function index(){
        $id=$this->uri->segment(5);
        //查询订单号
        $data['query']=$this->Order_model->getOrderData($id);
        //查询订单维修项
        $data['getQcReport']=$this->Product_model->getQcReport('',$id);
        //print_r($data['getQcReport']);
        $this->load->view('defaults/order_xiangqing',$data);
    }
}